package mysql

import "gorm.io/gorm"

type Cart struct {
	gorm.Model
	UserId     int     `gorm:"type:int(5);not null;comment:用户ID"`
	GoodsId    int     `gorm:"type:int(5);not null;comment:商品ID"`
	Quantity   int     `gorm:"type:int(5);not null;comment:购物车数量"`
	GoodsName  string  `gorm:"type:varchar(20);not null;comment:商品名称"`
	GoodsPrice float64 `gorm:"type:decimal(10,2);not null;comment:商品价格"`
	Status     int     `gorm:"type:int(1);not null;default:1;comment:1-已选中 2-未选中"`
}
